/*
 * BarraDeHerramientasConteiner.cpp
 *
 *  Created on: 27/04/2013
 *      Author: juan
 */

#include <gui/BarraDeHerramientasConteiner.h>
#include "gui/ButtonCreatorDER.h"
#include "gui/ButtonCreatorClases.h"
#include "utils/constantes.h"

BarraDeHerramientasConteiner::BarraDeHerramientasConteiner():der(new ButtonCreatorDER()),
clases(new ButtonCreatorClases()){
}

BarraDeHerramientasConteiner::~BarraDeHerramientasConteiner() {
}

BarraDeHerramientas* BarraDeHerramientasConteiner::getBarra(int tipo){
    BarraDeHerramientas* retval;

    switch(tipo){
    case DIAGRAMA_CLASES:
        retval = &clases;
        break;
    default:
        retval = &der;
        break;
    }

    return retval;
}
void BarraDeHerramientasConteiner::setTabs( Tabs* tabs){
    clases.setTabs(tabs);
    der.setTabs(tabs);
}
